package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.pojo.order.Order;


import com.qingcheng.service.order.OrderService;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author BaseJD
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Reference
    private OrderService orderService;

    @GetMapping("/findOrderListByUsername")
    public List<Order> findOrderListByUsername(String username) {
        List<Order> orderLists = orderService.findOrderListByUsername(username);
        return orderLists;
    }


}
